/*
 * @Author: Hp_lucky 1063512385@qq.com
 * @Date: 2024-10-12 16:21:53
 * @LastEditors: Hp_lucky 1063512385@qq.com
 * @LastEditTime: 2024-10-12 16:26:46
 * @FilePath: \lucky-rpg\assets\script\src\Game\Config\AdIcon.ts
 */
import { _decorator, Component, SpriteFrame } from 'cc';
import { SpriteRedefine } from '../../Basic/Component/SpriteRedefine';
import { autoComp, rootNode } from '../../Basic/Manager/BaseManager';
import { MultiPlatform } from '../../Basic/Model/Platform/MultiPlatform';
// import { MainModel_Ins } from '../Main/MainModel';
import { ImagePath } from './GameEnum';
const { ccclass } = _decorator;

@ccclass('AdIcon')
export class AdIcon extends Component {
  @autoComp(SpriteRedefine, rootNode)
  goods_icon: SpriteRedefine;

  protected async start() {
    const pf = MultiPlatform.Ins().platform;
    // this.goods_icon.spriteFrame = await MainModel_Ins.loadDynamicRes<SpriteFrame>(ImagePath.goods_icon + 'adicon/ad1_' + pf + '/spriteFrame');
  }
}
